<?php
switch ($mode)
{
  case 'post':
    $route = '@default?lang='.$sf_user->getLang().'&module=post&action=tag&tag=';
    break;
    
  default: 
    $route = '@default?lang='.$sf_user->getLang().'&module=image&action=tag&tag=';
    break; 
}
?>

<dl class="tags">
  <dt><?php echo __('Tagged'); ?>:</dt>
  <?php foreach ($post_tags as $post_tag): ?>
    <?php $tag = $post_tag->getTag(); ?>
    <?php $tag->setCulture($sf_user->getCulture()); ?> 
    
    <dd>
      <?php echo link_to($tag->getName() ? $tag->getName() : $tag->getHandle(), $route.$tag->getHandle()); ?>
    </dd>
    
  <?php endforeach; ?>  
</dl> 

